package com.zengqingfa.designpattern.create.prototype.shallow;

/**
 *
 * @fileName: Shape
 * @author: zengqf3
 * @date: 2021-4-23 17:33
 * @description:
 */
public class Shape implements Cloneable {

    private String name;

    private Owner owner;

    public Shape(String name, Owner owner) {
        this.name = name;
        this.owner = owner;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        Shape clone = (Shape) super.clone();
        return clone;
    }


    @Override
    public String toString() {
        return "Shape{" + "name='" + name + '\'' + ", owner=" + owner + '}'+super.toString();
    }
}
